home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_demo_hint.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
5KB
|
248 lines
# Jones 3D Cog Script
#
# demo_hint.cog
#
#
# [GGJ & HB]
#
# (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
#
# ========================================================================================
symbols
message entered
message activated
message boarded
message removed
message user0
cog bridge2cog
thing player local
thing hint1
thing hint2
thing hint3
thing hint4
thing hint5
thing hint6
thing hint7
thing hint8
thing hint9
thing hint10
thing hint11
thing hint12
thing hint13
thing hint14
thing hint15
thing hint16
thing th_boatButton #hint 5
thing th_key #hint 6
thing th_keyhole #hint 7
thing th_jeep #hint 8
thing th_plank #hint 13
thing th_H8GhostA
thing th_H8GhostB
sector sec_beyondSwing #hint 1
sector sec_waterHole #hint 3
sector sec_boulderdodge #hint 4
sector sec_volExit #teleports hint 8
sector sec_firstTunnel #hint 9
sector sec_beyondJump1 #hint 10
sector sec_leftSlope #hint 11
sector sec_beyondJump2 #hint 12
sector sec_beyondJump3 #hint 15
sector sec_exit #hint 16
surface surf_waterClimbout #hint 2
surface surf_plankSpot #hint 14
flex solvetohere local
int solved_01=0 local
int solved_02=0 local
int solved_03=0 local
int solved_04=0 local
int solved_05=0 local
int solved_06=0 local
int solved_07=0 local
int solved_08=0 local
int solved_09=0 local
int solved_10=0 local
int solved_11=0 local
int solved_12=0 local
int solved_13=0 local
int solved_14=0 local
int solved_15=0 local
int solved_16=0 local
int i local
int n local
end
# ========================================================================================
code
entered:
player = GetLocalPlayerThing();
if ((GetSenderRef() == sec_volExit) && (GetSourceRef() == player))
{
TeleportThing(hint8, th_H8GhostB);
}
if ((GetSenderRef() == sec_beyondSwing) && (GetSourceRef() == player) && (solved_01 == 0))
{
SetHintSolved(hint1);
solved_01 = 1;
TeleportThing(hint8, th_H8GhostA);
return;
}
if ((GetSenderRef() == surf_waterClimbout) && (GetSourceRef() == player) && (solved_02 == 0))
{
solved_02 = 1;
n = 2;
goto solvetohere;
}
if ((GetSenderRef() == sec_waterHole) && (GetSourceRef() == player) && (solved_03 == 0))
{
solved_03 = 1;
n = 3;
goto solvetohere;
}
if ((GetSenderRef() == sec_boulderdodge) && (GetSourceRef() == player) && (solved_04 == 0))
{
solved_04 = 1;
n = 4;
goto solvetohere;
}
if ((GetSenderRef() == sec_firstTunnel) && (GetSourceRef() == player) && (solved_09 == 0))
{
solved_09 = 1;
n = 9;
goto solvetohere;
}
if ((GetSenderRef() == sec_beyondJump1) && (GetSourceRef() == player) && (solved_10 == 0))
{
solved_10 = 1;
n = 10;
goto solvetohere;
}
if ((GetSenderRef() == sec_leftSlope) && (GetSourceRef() == player) && (solved_11 == 0))
{
solved_11 = 1;
n = 11;
goto solvetohere;
}
if ((GetSenderRef() == sec_beyondJump2) && (GetSourceRef() == player) && (solved_12 == 0))
{
solved_12 = 1;
n = 12;
goto solvetohere;
}
if ((GetSenderRef() == sec_beyondJump3) && (GetSourceRef() == player) && (solved_15 == 0))
{
solved_15 = 1;
n = 15;
goto solvetohere;
}
if ((GetSenderRef() == sec_exit) && (GetSourceRef() == player) && (solved_16 == 0))
{
solved_16 = 1;
n = 16;
goto solvetohere;
}
return;
# ========================================================================================
activated:
player = GetLocalPlayerThing();
if ((GetSenderRef() == th_boatButton) && (GetSourceRef() == player) && (solved_05 == 0))
{
solved_05 = 1;
n = 5;
goto solvetohere;
}
if ((GetSenderRef() == th_key) && (GetSourceRef() == player) && (solved_06 == 0))
{
solved_06 = 1;
n = 6;
goto solvetohere;
}
if ((GetSenderRef() == th_keyhole) && (GetCurItem(player) == 116) && (GetSourceRef() == player) && (solved_07 == 0))
{
solved_07 = 1;
n = 7;
goto solvetohere;
}
return;
# ========================================================================================
boarded:
if ((GetSenderRef() == th_jeep) && (solved_08 == 0))
{
solved_08 = 1;
n = 8;
goto solvetohere;
}
return;
# ========================================================================================
removed:
if ((GetSenderRef() == th_plank) && (solved_13 == 0))
{
solved_13 = 1;
n = 13;
goto solvetohere;
}
return;
# ========================================================================================
user0:
if (GetSenderRef() != bridge2cog) return;
if (solved_14 == 0)
{
solved_14 = 1;
n = 14;
goto solvetohere;
}
return;
# ========================================================================================
solvetohere:
for (i=0; i<n; i=i+1)
{
SetHintSolved(hint1[i]);
}
return;
end